#pragma once
#include "shape.h"
class MStar :
	public Shape
{
private:
	float ox, oy, oz;	//center of star
	float r1, r2, h;
	MVertex *verts;
	int step;
private:
	MStar(float ar1, float ar2, float ah, float aox=0, float aoy=0, float aoz=0);
public:
	~MStar(void);
	static MStar *makeStar(float ar1, float ar2, float ah, float aox=0, float aoy=0, float aoz=0);
	void updateStar(float ar1, float ar2, float ah, float aox=0, float aoy=0, float aoz=0);
	void drawStar(void(*func)(const MVertex &p1,  const MVertex &p2, const MVertex &p3, int ic),
								void(*drawline)(const MVertex &p1,  const MVertex &p2,int ic)=NULL);
	void drawShape();
	void incrementSlice();
	void decrementSlice();
	void incrementStack();
	void decrementStack();
};

